package com.dfiov.cloud.msmtools.service.feign;

import com.dfiov.cloud.msmtools.mapper.entity.msaccount.UserProfileListItemVo;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;
import com.pateo.qingcloud.framework.common.statusCode.CommonStatusCode;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

//@FeignClient(value = "msaccount")
@FeignClient(name = "msaccount",url = "http://msaccount.pro.dftccloud.t.home")
public interface MsAccountFeignClient {

    @RequestMapping(value = "/account/accountBind/bindUserInfo/all/{deviceId}",
            method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_VALUE,
            consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseRestResponse<List<UserProfileListItemVo>> getAllBindUserInfoByDevice(@PathVariable("deviceId") String deviceId) ;

}





